cmake_minimum_required(VERSION 3.8)
project(navpie_demo)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(serial REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)

add_executable(navi_start src/publisher_navpie.cpp)
ament_target_dependencies(navi_start rclcpp std_msgs serial)

add_executable(navi_monitor src/subscriber_navpie.cpp)
ament_target_dependencies(navi_monitor rclcpp std_msgs)

install(TARGETS
  navi_start
  navi_monitor
  DESTINATION lib/${PROJECT_NAME})

ament_package()
